Carbon


MPCreateTimer

Header: Multiprocessing.h Carbon status: Supported

Creates a timer.

OSStatus MPCreateTimer (
    MPTimerID *timerID
);
Parameter descriptions
timerID

On return, the timerID contains the ID of the newly created timer.

function result

A result code.

DISCUSSION

You can use a timer to notify an event, queue, or semaphore after a specified amount of time has elapsed.

Timer objects are created from dynamically-allocated internal resources. Other tasks may be competing for these resources so it is possible this function may not be able to create one.

To specify the notification mechanism to signal, use the function MPSetTimerNotify.

Also see the functions MPDeleteTimer and MPArmTimer.

VERSION NOTES

Introduced with Multiprocessing Services 2.0.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/13/2000)